<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
    <!--<![endif]-->
    <!-- BEGIN HEAD -->
    <head>
        <meta charset="utf-8" />
        <title>营销监测平台</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <meta content="Preview page of Metronic Admin Theme #4 for statistics, charts, recent events and reports" name="description" />
        <meta content="" name="author" />
        <link href="../assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
        <link href="../assets/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
        <!-- BEGIN THEME LAYOUT STYLES -->
        <link href="../assets/layouts/layout4/css/layout.min.css" rel="stylesheet" type="text/css" />
        <link href="../assets/layouts/layout4/css/themes/default.min.css" rel="stylesheet" type="text/css" id="style_color" />
        <!-- start 自定义样式 -->
        <link rel="stylesheet" href="../add/css/search.css" rel="stylesheet" type="text/css" />
        <!-- end 自定义样式 -->
        <!-- 开始 筛选组件自定义添加 -->
        <link rel="stylesheet" href="../add/tool/layui/css/layui.css">
        <link rel="stylesheet" href="../add/tool/css/bootstrap.min.css">
        <link rel="stylesheet" href="../add/tool/css/query-builder.default.min.css">
        <link rel="stylesheet" href="../add/tool/css/bootstrap-datepicker3.min.css">
        <link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.15/css/jquery.dataTables.css">
        <!-- 结束 筛选组件自定义添加 -->
        <style>
            body::-webkit-scrollbar {
                width: 0px
            }
            .modal-backdrop{
                z-index: 10!important;
            }
            .modal-content{
                margin-top: 200px;
            }
        </style>
     </head>
    <!-- END HEAD -->

    <body class="page-container-bg-solid page-header-fixed page-sidebar-closed-hide-logo">
        <!-- 开始 头部 -->
        <div class="page-header navbar navbar-fixed-top" style="border-bottom: 0px;">
            <!-- BEGIN HEADER INNER -->
            <div class="page-header-inner ">
                <!-- BEGIN LOGO -->
                <div class="page-logo">
                    <a href="../index.html" class="logo-default ck_tit">
                        营销监测平台
                    </a>
                    <div class="menu-toggler sidebar-toggler">
                        <!-- DOC: Remove the above "hide" to enable the sidebar toggler button on header -->
                    </div>
                </div>
                <!-- END LOGO -->
                <!-- BEGIN RESPONSIVE MENU TOGGLER -->
                <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> </a>
                <!-- END RESPONSIVE MENU TOGGLER -->
                <!-- BEGIN PAGE ACTIONS -->
               
                <!-- BEGIN PAGE TOP -->
                <div class="page-top">
                    <!-- BEGIN HEADER SEARCH BOX -->
                    <!-- DOC: Apply "search-form-expanded" right after the "search-form" class to have half expanded search box -->
                    <form class="search-form" action="page_general_search_2.html" method="GET">
                        <div class="input-group">
                            <input type="text" class="form-control input-sm" placeholder="Search..." name="query">
                            <span class="input-group-btn">
                                <a href="javascript:;" class="btn submit">
                                    <i class="icon-magnifier"></i>
                                </a>
                            </span>
                        </div>
                    </form>
                    <!-- END HEADER SEARCH BOX -->
                    <!-- BEGIN TOP NAVIGATION MENU -->
                    <div class="top-menu">
                        <ul class="nav navbar-nav pull-right">
                            <li class="separator hide"> </li>
                            <!-- BEGIN NOTIFICATION DROPDOWN -->
                            <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                            <!-- DOC: Apply "dropdown-hoverable" class after "dropdown" and remove data-toggle="dropdown" data-hover="dropdown" data-close-others="true" attributes to enable hover dropdown mode -->
                           
                            <li class="separator hide"> </li>
                            <!-- BEGIN INBOX DROPDOWN -->
                            <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                            <li class="dropdown dropdown-extended dropdown-inbox dropdown-dark" id="header_inbox_bar">
                                <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                                    <i class="icon-envelope-open"></i>
                                    <span class="badge badge-danger"> 4 </span>
                                </a>
                                <ul class="dropdown-menu">
                                    <li class="external">
                                        <h3>You have
                                            <span class="bold">7 New</span> Messages</h3>
                                        <a href="app_inbox.html">view all</a>
                                    </li>
                                    <li>
                                        <ul class="dropdown-menu-list scroller" style="height: 275px;" data-handle-color="#637283">
                                            <li>
                                                <a href="#">
                                                    <span class="photo">
                                                        <img src="../assets/layouts/layout3/img/avatar2.jpg" class="img-circle" alt=""> </span>
                                                    <span class="subject">
                                                        <span class="from"> Lisa Wong </span>
                                                        <span class="time">Just Now </span>
                                                    </span>
                                                    <span class="message"> Vivamus sed auctor nibh congue nibh. auctor nibh auctor nibh... </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#">
                                                    <span class="photo">
                                                        <img src="../assets/layouts/layout3/img/avatar3.jpg" class="img-circle" alt=""> </span>
                                                    <span class="subject">
                                                        <span class="from"> Richard Doe </span>
                                                        <span class="time">16 mins </span>
                                                    </span>
                                                    <span class="message"> Vivamus sed congue nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#">
                                                    <span class="photo">
                                                        <img src="../assets/layouts/layout3/img/avatar1.jpg" class="img-circle" alt=""> </span>
                                                    <span class="subject">
                                                        <span class="from"> Bob Nilson </span>
                                                        <span class="time">2 hrs </span>
                                                    </span>
                                                    <span class="message"> Vivamus sed nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#">
                                                    <span class="photo">
                                                        <img src="../assets/layouts/layout3/img/avatar2.jpg" class="img-circle" alt=""> </span>
                                                    <span class="subject">
                                                        <span class="from"> Lisa Wong </span>
                                                        <span class="time">40 mins </span>
                                                    </span>
                                                    <span class="message"> Vivamus sed auctor 40% nibh congue nibh... </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#">
                                                    <span class="photo">
                                                        <img src="../assets/layouts/layout3/img/avatar3.jpg" class="img-circle" alt=""> </span>
                                                    <span class="subject">
                                                        <span class="from"> Richard Doe </span>
                                                        <span class="time">46 mins </span>
                                                    </span>
                                                    <span class="message"> Vivamus sed congue nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span>
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <!-- END INBOX DROPDOWN -->
                            <li class="separator hide"> </li>
                            <!-- BEGIN TODO DROPDOWN -->
                            <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                            <li class="dropdown dropdown-extended dropdown-tasks dropdown-dark" id="header_task_bar">
                                <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                                    <i class="icon-calendar"></i>
                                    <span class="badge badge-primary"> 3 </span>
                                </a>
                                <ul class="dropdown-menu extended tasks">
                                    <li class="external">
                                        <h3>You have
                                            <span class="bold">12 pending</span> tasks</h3>
                                        <a href="?p=page_todo_2">view all</a>
                                    </li>
                                    <li>
                                        <ul class="dropdown-menu-list scroller" style="height: 275px;" data-handle-color="#637283">
                                            <li>
                                                <a href="javascript:;">
                                                    <span class="task">
                                                        <span class="desc">New release v1.2 </span>
                                                        <span class="percent">30%</span>
                                                    </span>
                                                    <span class="progress">
                                                        <span style="width: 40%;" class="progress-bar progress-bar-success" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100">
                                                            <span class="sr-only">40% Complete</span>
                                                        </span>
                                                    </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="javascript:;">
                                                    <span class="task">
                                                        <span class="desc">Application deployment</span>
                                                        <span class="percent">65%</span>
                                                    </span>
                                                    <span class="progress">
                                                        <span style="width: 65%;" class="progress-bar progress-bar-danger" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100">
                                                            <span class="sr-only">65% Complete</span>
                                                        </span>
                                                    </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="javascript:;">
                                                    <span class="task">
                                                        <span class="desc">Mobile app release</span>
                                                        <span class="percent">98%</span>
                                                    </span>
                                                    <span class="progress">
                                                        <span style="width: 98%;" class="progress-bar progress-bar-success" aria-valuenow="98" aria-valuemin="0" aria-valuemax="100">
                                                            <span class="sr-only">98% Complete</span>
                                                        </span>
                                                    </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="javascript:;">
                                                    <span class="task">
                                                        <span class="desc">Database migration</span>
                                                        <span class="percent">10%</span>
                                                    </span>
                                                    <span class="progress">
                                                        <span style="width: 10%;" class="progress-bar progress-bar-warning" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100">
                                                            <span class="sr-only">10% Complete</span>
                                                        </span>
                                                    </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="javascript:;">
                                                    <span class="task">
                                                        <span class="desc">Web server upgrade</span>
                                                        <span class="percent">58%</span>
                                                    </span>
                                                    <span class="progress">
                                                        <span style="width: 58%;" class="progress-bar progress-bar-info" aria-valuenow="58" aria-valuemin="0" aria-valuemax="100">
                                                            <span class="sr-only">58% Complete</span>
                                                        </span>
                                                    </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="javascript:;">
                                                    <span class="task">
                                                        <span class="desc">Mobile development</span>
                                                        <span class="percent">85%</span>
                                                    </span>
                                                    <span class="progress">
                                                        <span style="width: 85%;" class="progress-bar progress-bar-success" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100">
                                                            <span class="sr-only">85% Complete</span>
                                                        </span>
                                                    </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="javascript:;">
                                                    <span class="task">
                                                        <span class="desc">New UI release</span>
                                                        <span class="percent">38%</span>
                                                    </span>
                                                    <span class="progress progress-striped">
                                                        <span style="width: 38%;" class="progress-bar progress-bar-important" aria-valuenow="18" aria-valuemin="0" aria-valuemax="100">
                                                            <span class="sr-only">38% Complete</span>
                                                        </span>
                                                    </span>
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                            <!-- END TODO DROPDOWN -->
                            <!-- BEGIN USER LOGIN DROPDOWN -->
                            <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                            <li class="dropdown dropdown-user dropdown-dark">
                                <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                                    <span class="username username-hide-on-mobile"> eship </span>
                                    <!-- DOC: Do not remove below empty space(&nbsp;) as its purposely used -->
                                    <img alt="" class="img-circle" src="../assets/layouts/layout4/img/avatar9.jpg" /> </a>
                                <ul class="dropdown-menu dropdown-menu-default">
                                    <li>
                                        <a href="page_user_profile_1.html">
                                            <i class="icon-user"></i> My Profile </a>
                                    </li>
                                    <li>
                                        <a href="app_calendar.html">
                                            <i class="icon-calendar"></i> My Calendar </a>
                                    </li>
                                    <li>
                                        <a href="app_inbox.html">
                                            <i class="icon-envelope-open"></i> My Inbox
                                            <span class="badge badge-danger"> 3 </span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="app_todo_2.html">
                                            <i class="icon-rocket"></i> My Tasks
                                            <span class="badge badge-success"> 7 </span>
                                        </a>
                                    </li>
                                    <li class="divider"> </li>
                                    <li>
                                        <a href="page_user_lock_1.html">
                                            <i class="icon-lock"></i> Lock Screen </a>
                                    </li>
                                    <li>
                                        <a href="page_user_login_1.html">
                                            <i class="icon-key"></i> Log Out </a>
                                    </li>
                                </ul>
                            </li>
                            <!-- END USER LOGIN DROPDOWN -->
                            
                        </ul>
                    </div>
                    <!-- END TOP NAVIGATION MENU -->
                </div>
                <!-- END PAGE TOP -->
            </div>
            <!-- END HEADER INNER -->
        </div>
        <!-- 结束 头部 -->
        <!-- BEGIN HEADER & CONTENT DIVIDER -->
        <div class="clearfix"> </div>
        <!-- END HEADER & CONTENT DIVIDER -->
        <!-- BEGIN CONTAINER -->
        <div class="page-container" style="padding-left:0;padding-top: 0px;">
            <!-- 开始 导航栏 -->
            <div class="page-sidebar-wrapper" >
                <div class="page-sidebar navbar-collapse collapse" style="background-color:#333;width: 235px;">
                    <ul class="page-sidebar-menu ck_menu" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" style="background-color:#333;">
                        <li class="nav-item">
                            <a href="../index.html" class="nav-link nav-toggle">
                                <i class="icon-home"></i>
                                <span class="title">营销概览</span>
                                <span class="selected"></span>
                            </a>
                            <a href="./search.html" class="nav-link nav-toggle">
                                <i class="icon-magnifier"></i>
                                <span class="title">搜索营销效果</span>
                                <span class="selected"></span>
                            </a>
                            <a href="./Advertisement.html" class="nav-link nav-toggle">
                                <i class="icon-bell"></i>
                                <span class="title">网络广告营销效果</span>
                                <span class="selected"></span>
                            </a>
                            <a href="./custom.html" class="nav-link nav-toggle">
                                <i class="icon-calendar"></i>
                                <span class="title">自定义报表</span>
                                <span class="selected"></span>
                            </a>
                            <a href="./mannger.html" class="nav-link nav-toggle">
                                <i class="icon-calendar"></i>
                                <span class="title">营销管理</span>
                                <span class="selected"></span>
                            </a>
                        </li>
                    </ul>
                    <!-- END SIDEBAR MENU -->
                </div>
                <!-- END SIDEBAR -->
             </div> 



            <!-- 结束 导航栏 -->
        <!-- 开始 主体部分 -->
            <div class="page-content-wrapper">
                    <div class="page-content" style="padding-top: 25px;">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this">授权用户</li>
                                <li>渠道管理</li>
                            </ul>
                            <div class="layui-tab-content">
                                <!-- TAB1用户管理 -->
                                <div class="layui-tab-item layui-show">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="table-toolbar">
                                                <div class="row">
                                                    <div class="col-md-6">
                                                        <br/>
                                                        <br/>
                                                        <div class="btn-group">
                                                            <a id="sample_editable_1_new" class="btn sbold green" href="#addAccount" data-toggle="modal"> 新建用户
                                                                <i class="fa fa-plus"></i>
                                                            </a>
                                                        </div>
                                                    </div>
                                                    <!--<div class="col-md-6">-->
                                                    <!--<div class="btn-group pull-right">-->
                                                    <!--<button class="btn green  btn-outline dropdown-toggle" data-toggle="dropdown">Tools-->
                                                    <!--<i class="fa fa-angle-down"></i>-->
                                                    <!--</button>-->
                                                    <!--<ul class="dropdown-menu pull-right">-->
                                                    <!--<li>-->
                                                    <!--<a href="javascript:;">-->
                                                    <!--<i class="fa fa-print"></i> Print </a>-->
                                                    <!--</li>-->
                                                    <!--<li>-->
                                                    <!--<a href="javascript:;">-->
                                                    <!--<i class="fa fa-file-pdf-o"></i> Save as PDF </a>-->
                                                    <!--</li>-->
                                                    <!--<li>-->
                                                    <!--<a href="javascript:;">-->
                                                    <!--<i class="fa fa-file-excel-o"></i> Export to Excel </a>-->
                                                    <!--</li>-->
                                                    <!--</ul>-->
                                                    <!--</div>-->
                                                    <!--</div>-->
                                                </div>
                                            </div>
                                            <div class="portlet light bordered">
                                                <div class="portlet-body form">
                                                    <div class="form-body" style="padding:0px;">
                                                        <div class="form-group">
                                                            <label>用户名称</label>
                                                            <div class="row">
                                                                <div class="col-md-5">
                                                                    <input type="text" name="" class="form-control" placeholder="请输入用户名称" id="name"/>
                                                                </div>
                                                                <div class="col-md-3">
                                                                    <button class="btn blue" onclick="query();">查询</button>
                                                                </div>

                                                            </div>

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <!-- BEGIN EXAMPLE TABLE PORTLET-->
                                            <div class="portlet light bordered">
                                                <div class="portlet-title">
                                                    <div class="caption">
                                                        <span class="caption-subject uppercase">账户列表</span>
                                                    </div>
                                                    <div class="actions" style="display: block">
                                                        <!--<a class="btn btn-circle btn-icon-only btn-default" data-toggle="modal"-->
                                                        <!--href="#addAccount">-->
                                                        <!--<i class="icon-cloud-upload"></i>-->
                                                        <!--</a>-->
                                                        <a id="updateA" class="btn btn-circle btn-icon-only btn-default"
                                                           href="#modifyAccount" onclick="update();">
                                                            <i class="icon-wrench"></i>
                                                        </a>
                                                        <a class="btn btn-circle btn-icon-only btn-default" onclick="deleteAction();">
                                                            <i class="icon-trash"></i>
                                                        </a>
                                                    </div>
                                                </div>
                                                <div class="portlet-body">
                                                    <table id="dataTables" class="table table-striped table-bordered table-hover table-checkable order-column">
                                                        <!-- <thead>
                                                        <tr>
                                                            <th> ID </th>
                                                            <th> 用户名 </th>
                                                            <th> 角色 </th>
                                                            <th> 加入时间 </th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        </tbody> -->
                                                    </table>
                                                    <div class="modal fade bs-modal-lg" id="addAccount" tabindex="-1" role="dialog"
                                                         aria-hidden="true" style="display: none;">
                                                        <div class="modal-dialog modal-lg">
                                                            <div class="modal-content" style="z-index: 99999999;">
                                                                <div class="modal-header">
                                                                    <button type="button" class="close" data-dismiss="modal"
                                                                            aria-hidden="true"></button>
                                                                    <h4 class="modal-title">新建用户</h4>
                                                                </div>
                                                                <div class="modal-body">
                                                                    <div class="portlet-body">
                                                                        <!-- BEGIN FORM-->
                                                                        <form  id="saveForm" action="/center/saveUser" method="post" class="form-horizontal">
                                                                            <div class="form-body">
                                                                                <div id="errorDiv" class="alert alert-danger display-hide">
                                                                                    <button class="close" data-close="alert"></button> 您有错误输入，请检查。</div>
                                                                                <div id="successDiv" class="alert alert-success display-hide">
                                                                                    <button class="close" data-close="alert"></button> 输入验证成功。 </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">用户名
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="username" required="required" type="text" name="username" data-required="1" class="form-control" placeholder="请输入用户名"/> </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">账户类型
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <select id="selectRole">
                                                                                            <option>1233</option>
                                                                                        </select>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">密码
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="password" required="required" name="password" type="password" data-required="1" class="form-control" placeholder="请输入密码"/> </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">确认密码
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="spassword" required="required" type="password" data-required="1" class="form-control" placeholder="请确认密码"/> </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-actions">
                                                                                <div class="row">
                                                                                    <div class="col-md-offset-3 col-md-9">
                                                                                        <a type="submit" class="btn green"  onclick="saveAction();">保存</a>
                                                                                        <button type="button" class="btn grey-salsa btn-outline" data-dismiss="modal" aria-hidden="true" >取消</button>
                                                                                        <!--<button type="button" class="close" -->
                                                                                        <!--&gt;</button>-->
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </form>
                                                                        <!-- END FORM-->
                                                                    </div>
                                                                    <!-- /.modal-dialog -->
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="modal fade bs-modal-lg" id="modifyAccount" tabindex="-1" role="dialog"
                                                         aria-hidden="true" style="display: none;">
                                                        <div class="modal-dialog modal-lg">
                                                            <div class="modal-content">
                                                                <div class="modal-header">
                                                                    <button type="button" class="close" data-dismiss="modal"
                                                                            aria-hidden="true"></button>
                                                                    <h4 class="modal-title">编辑用户</h4>
                                                                </div>
                                                                <div class="modal-body">
                                                                    <div class="portlet-body">
                                                                        <!-- BEGIN FORM-->
                                                                        <form  id="updateForm" action="/center/modifyUser" method="post" class="form-horizontal">
                                                                            <div class="form-body">
                                                                                <div id="errorUpdateDiv" class="alert alert-danger display-hide">
                                                                                    <button class="close" data-close="alert"></button> 您有错误输入，请检查。</div>
                                                                                <div id="successUpdateDiv" class="alert alert-success display-hide">
                                                                                    <button class="close" data-close="alert"></button> 输入验证成功。 </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">用户名
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="editUserName" required="required" type="text" name="username" data-required="1" class="form-control" placeholder="请输入用户名"/> </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">账户类型
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <select id="editSelectRole" name="roleValues" class="selectpicker" multiple="multiple" data-live-search="true" data-selected-text-format="count > 3">

                                                                                            <option th:each="role: ${roleList}" th:value="${role.name}" th:text="${role.label}"></option>
                                                                                        </select>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">密码
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="editPasswd" required="required" name="password" type="password" data-required="1" class="form-control" placeholder="请输入密码"/> </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">确认密码
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="editSPasswd" required="required" type="password" data-required="1" class="form-control" placeholder="请确认密码"/> </div>
                                                                                </div>
                                                                                <input type="hidden" id="id" name="id" />
                                                                            </div>
                                                                            <div class="form-actions">
                                                                                <div class="row">
                                                                                    <div class="col-md-offset-3 col-md-9">
                                                                                        <a type="button" class="btn green" aria-hidden="true" onclick="updateAction();">保存</a>
                                                                                        <button type="button" class="btn grey-salsa btn-outline" data-dismiss="modal" aria-hidden="true">取消</button>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </form>
                                                                        <!-- END FORM-->
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- END EXAMPLE TABLE PORTLET-->
                                        </div>
                                    </div>
                                </div>
                                <!-- TAB2 渠道管理-->
                                <div class="layui-tab-item">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="table-toolbar">
                                                <div class="row">
                                                    <div class="col-md-6">
                                                        <br/>
                                                        <br/>
                                                        <div class="btn-group">
                                                            <a id="sample_editable_1_new1" class="btn sbold green" href="#addChannel" data-toggle="modal"> 添加渠道
                                                                <i class="fa fa-plus"></i>
                                                            </a>
                                                        </div>
                                                        <a href="/center/testDownload" style="margin-left:6rem;"><font color="red"><b>下载模板</b></font></a>
                                                        <br/>
                                                        <br/>
                                                        <form class="form-horizontal" id="form_table" enctype="multipart/form-data" method="post">
                                                            <input class="form-input" type="file" name="file" style="float:left;width:180px;" />
                                                        </form>
                                                            <button onclick="uploads()" style="float:left;margin-top:-5px;" class="btn green-haze btn-outline btn-circle btn-sm"> 开始导入 </button>
                                                        <br/>
                                                        <br/>
                                                        <br/>
                                                        <!--<button onclick="testDownload()" style="float:left;margin-top:-5px;" class="btn green-haze btn-outline btn-circle btn-sm"> 导出模板 </button>-->

                                                        <div id="error" class="alert alert-danger display-hide">
                                                            <button class="close" data-close="alert"></button> 您有错误输入，请检查。
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="portlet light bordered">
                                                <div class="portlet-body form">
                                                    <div class="form-body" style="padding:0px;">
                                                        <div class="form-group">
                                                            <label>渠道名称</label>
                                                            <div class="row">
                                                                <div class="col-md-5">
                                                                    <input type="text" name="" class="form-control" placeholder="请输入渠道名称" id="channelName"/>
                                                                </div>
                                                                <div class="col-md-3">
                                                                    <button class="btn blue" onclick="queryChannel();">查询</button>
                                                                </div>

                                                            </div>

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="portlet light bordered">
                                                <div class="portlet-title">
                                                    <div class="caption">
                                                        <span class="caption-subject uppercase">渠道列表</span>
                                                    </div>
                                                    <div class="actions" style="display: block">
                                                        <a id="updateChannel" class="btn btn-circle btn-icon-only btn-default"
                                                           href="#modifyChannel" onclick="updateChannel();">
                                                            <i class="icon-wrench"></i>
                                                        </a>
                                                        <a class="btn btn-circle btn-icon-only btn-default" onclick="deleteActionChannel();">
                                                            <i class="icon-trash"></i>
                                                        </a>
                                                    </div>
                                                </div>
                                                <div class="portlet-body">
                                                    <table id="dataTablesChannel" class="table table-striped table-bordered table-hover table-checkable order-column">
                                                        <!-- <thead>
                                                        <tr>
                                                            <th> ID </th>
                                                            <th> 渠道类型 </th>
                                                            <th> 渠道编码 </th>
                                                            <th> 渠道名称 </th>
                                                            <th> 更新时间 </th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        </tbody> -->
                                                    </table>
                                                    <div class="modal fade bs-modal-lg" id="addChannel" tabindex="-1" role="dialog"
                                                         aria-hidden="true" style="display: none;">
                                                        <div class="modal-dialog modal-lg">
                                                            <div class="modal-content">
                                                                <div class="modal-header">
                                                                    <button type="button" class="close" data-dismiss="modal"
                                                                            aria-hidden="true"></button>
                                                                    <h4 class="modal-title">新建渠道</h4>
                                                                </div>
                                                                <div class="modal-body">
                                                                    <div class="portlet-body">
                                                                        <!-- BEGIN FORM-->
                                                                        <form  id="saveFormChannel" action="/center/saveChannel" method="post" class="form-horizontal">
                                                                            <div class="form-body">
                                                                                <div id="errorDivChannel" class="alert alert-danger display-hide">
                                                                                    <button class="close" data-close="alert"></button> 您有错误输入，请检查。</div>
                                                                                <div id="successDivChannel" class="alert alert-success display-hide">
                                                                                    <button class="close" data-close="alert"></button> 输入验证成功。 </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">渠道类型
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <select id="channelType" class="form-control" name="channelType">
                                                                                            <option value="">请选择渠道类型</option>
                                                                                            <option value="AGENT_COMPANY">代理公司</option>
                                                                                            <option value="MEDIA_TYPE">营销来源</option>
                                                                                            <option value="MEDIA_CHANNEL">媒体公司</option>
                                                                                            <option value="ACCOUNT_TYPE">账户</option>
                                                                                            <option value="PRODUCT_TYPE">产品</option>
                                                                                            <option value="INSURANCE_TYPE">险种</option>
                                                                                        </select>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">渠道编码
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="codeChannel" required="required" type="text" name="channelEn" data-required="1" class="form-control" placeholder="请输入渠道编码"/> </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">渠道名称
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="nameChannel" required="required" type="text" name="channelCn" data-required="1" class="form-control" placeholder="请输入渠道名称"/> </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-actions">
                                                                                <div class="row">
                                                                                    <div class="col-md-offset-3 col-md-9">
                                                                                        <a type="submit" class="btn green"  onclick="saveActionChannel();">保存</a>
                                                                                        <button type="button" class="btn grey-salsa btn-outline" data-dismiss="modal" aria-hidden="true">取消</button>
                                                                                        <!--<button type="button" class="close" -->
                                                                                        <!--&gt;</button>-->
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </form>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="modal fade bs-modal-lg" id="modifyChannel" tabindex="-1" role="dialog"
                                                         aria-hidden="true" style="display: none;">
                                                        <div class="modal-dialog modal-lg">
                                                            <div class="modal-content">
                                                                <div class="modal-header">
                                                                    <button type="button" class="close" data-dismiss="modal"
                                                                            aria-hidden="true"></button>
                                                                    <h4 class="modal-title">编辑渠道</h4>
                                                                </div>
                                                                <div class="modal-body">
                                                                    <div class="portlet-body">
                                                                        <!-- BEGIN FORM-->
                                                                        <form  id="updateFormChannel" method="post" class="form-horizontal">
                                                                            <div class="form-body">
                                                                                <div id="errorUpdateDivChannel" class="alert alert-danger display-hide">
                                                                                    <button class="close" data-close="alert"></button> 您有错误输入，请检查。</div>
                                                                                <div id="successUpdateDivChannel" class="alert alert-success display-hide">
                                                                                    <button class="close" data-close="alert"></button> 输入验证成功。 </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">渠道类型
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <select id="editChannelType" class="form-control" name="channelType" disabled="disabled">
                                                                                            <option value="">请选择渠道类型</option>
                                                                                            <option value="AGENT_COMPANY">代理公司</option>
                                                                                            <option value="MEDIA_TYPE">营销来源</option>
                                                                                            <option value="MEDIA_CHANNEL">媒体公司</option>
                                                                                            <option value="ACCOUNT_TYPE">账户类型</option>
                                                                                            <option value="PRODUCT_TYPE">产品类型</option>
                                                                                            <option value="INSURANCE_TYPE">险种类型</option>
                                                                                        </select>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">渠道编码
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="editCodeChannel" required="required" type="text" name="channelEn" readonly="readonly" data-required="1" class="form-control" placeholder="请输入渠道编码"/> </div>
                                                                                </div>
                                                                                <div class="form-group">
                                                                                    <label class="control-label col-md-3">渠道名称
                                                                                        <span class="required"> * </span>
                                                                                    </label>
                                                                                    <div class="col-md-4">
                                                                                        <input id="editNameChannel" required="required" type="text" name="channelCn" data-required="1" class="form-control" placeholder="请输入渠道名称"/> </div>
                                                                                </div>
                                                                                <input  id="ChannelId" type="hidden" name="id" />
                                                                            </div>
                                                                            <div class="form-actions">
                                                                                <div class="row">
                                                                                    <div class="col-md-offset-3 col-md-9">
                                                                                        <a type="button" class="btn green" aria-hidden="true"  onclick="updateActionChannel();">保存</a>
                                                                                        <button type="button" class="btn grey-salsa btn-outline" data-dismiss="modal" aria-hidden="true">取消</button>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </form>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
            </div>
            
            
       
        <!-- 结束 主题部分 -->
        <!-- 开始 底部 -->
        <div class="page-footer">
            <div class="page-footer-inner"> 2016 &copy; Metronic Theme By
                <a target="_blank" href="http://keenthemes.com">Keenthemes</a> &nbsp;|&nbsp;
                <a href="http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes" title="Purchase Metronic just for 27$ and get lifetime updates for free" target="_blank">Purchase Metronic!</a>
            </div>
            <div class="scroll-to-top">
                <i class="icon-arrow-up"></i>
            </div>
        </div>
        
        
        <!-- 开始 主要插件 -->
        <script src="../assets/global/plugins/jquery.min.js" type="text/javascript"></script>
        <script src="../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="../add//tool/js/echarts.min.js"></script>
        <!-- 结束 主要插件 -->
        <!-- 开始 页面级插件 -->
        <!-- 开始 主题布局脚本 -->
        <script src="../assets/layouts/layout4/scripts/layout.min.js" type="text/javascript"></script>
        <script src="../assets/layouts/layout4/scripts/demo.min.js" type="text/javascript"></script>
        <script src="../assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
        <script src="../assets/layouts/global/scripts/quick-nav.min.js" type="text/javascript"></script>
        <!-- 结束 主题布局脚本 -->
        <!-- 开始 自定义js -->
        <script src="../add/tool/js/jquery.min.js"></script>
        <script src="../add/tool/js/bootstrap.min.js"></script>
        <script src="../add/tool/js/query-builder.standalone.min.js"></script>
        <script src="../add/tool/js/bootstrap-datepicker.min.js"></script>
        <script type="text/javascript" charset="utf8" src="http://cdn.datatables.net/1.10.15/js/jquery.dataTables.js"></script>
         <script src="../add/tool/layui/layui.js"></script>
        <script src="../add/js/managecenter.js"></script>

        <!-- 结束 自定义js -->
    </body>

</html>